<?php if (!defined('THINK_PATH')) exit(); echo W('Nav',array('name'=>'添加支付方式'));?>
<div class="main-div">
    <form action="
    <?php if($payment ): echo U(GROUP_NAME.'/Payment/runSave');?>
    <?php else: ?>
        <?php echo U(GROUP_NAME.'/Payment/runSave',array('add'=>1)); endif; ?>"
          method="post" enctype="multipart/form-data" >
        <table width="100%" id="general-table">
            <tr>
                <input type="hidden" name="id" value="<?php echo ($payment["id"]); ?>" size="15"/>
                <td class="label">支付名称:</td>
                <td>
                    <input type='text' name='name' maxlength="20" value='<?php echo ($payment["name"]); ?>' size='27'/> <font color="red">*</font>
                </td>
            </tr>
            <tr>
                <td class="label">手续费:</td>
                <td>
                    <input type="text" name="fee" value="<?php echo ($payment["fee"]); ?>" size="15"/>（%）
                </td>
            </tr>
            <tr>
                <td class="label">是否启用:</td>
                <td>
                    <?php if($payment["is_val"] ): ?><input type="radio" name="is_val" value="1" checked="true"/> 是 <input type="radio" name="is_val" value="0"/> 否
                    <?php else: ?>
                        <input type="radio" name="is_val" value="1" /> 是 <input type="radio" name="is_val"  value="0" checked /> 否<?php endif; ?>
                </td>
            </tr>
        </table>
        <div class="button-div">
            <input type="submit" value=" 确定 "/>
            <input type="reset" value=" 重置 "/>
        </div>
    </form>
</div>
</body>
</html>